.class public Lcn/cheln/explorer/ds/sdcard/StrPrefixFilter;
.super Lcn/cheln/explorer/ds/sdcard/TypeFilter;


# instance fields
.field private a:Ljava/util/List;

.field private b:Ljava/lang/String;


# direct methods
.method public constructor <init>([Ljava/lang/Integer;[Lcn/cheln/explorer/ds/sdcard/TypeFilter$TextWrapper;[Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcn/cheln/explorer/ds/sdcard/TypeFilter;-><init>([Ljava/lang/Integer;[Lcn/cheln/explorer/ds/sdcard/TypeFilter$TextWrapper;[Ljava/lang/String;)V

    iput-object p4, p0, Lcn/cheln/explorer/ds/sdcard/StrPrefixFilter;->a:Ljava/util/List;

    iput-object p5, p0, Lcn/cheln/explorer/ds/sdcard/StrPrefixFilter;->b:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public accept(Ljava/io/File;)Z
    .locals 3

    const/4 v2, 0x0

    invoke-super {p0, p1}, Lcn/cheln/explorer/ds/sdcard/TypeFilter;->accept(Ljava/io/File;)Z

    move-result v0

    if-nez v0, :cond_0

    move v0, v2

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcn/cheln/explorer/ds/sdcard/StrPrefixFilter;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    new-instance v0, Lcn/cheln/explorer/beans/FileInfo;

    invoke-direct {v0}, Lcn/cheln/explorer/beans/FileInfo;-><init>()V

    invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/cheln/explorer/beans/FileInfo;->a(Ljava/lang/String;)V

    iget-object v1, p0, Lcn/cheln/explorer/ds/sdcard/StrPrefixFilter;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    move v0, v2

    goto :goto_0
.end method
